<?php
    $this->breadcrumbs = array(
        t('Expenses'),
    );

    /* $this->menu = array(
      array('label' => 'Create Expenses', 'url' => array('create')),
      array('label' => 'Manage Expenses', 'url' => array('admin')),
      ); */
?>

<h1><?php echo t('Expenses'); ?></h1>

<?php /*
      $this->widget('bootstrap.widgets.TbListView', array(
      'dataProvider' => $dataProvider,
      'itemView' => '_view',
      )); */
?>

<?php
    $this->widget('bootstrap.widgets.TbButton', array(
        //'buttonType' => 'ajaxLink',
        'type' => 'primary',
        'label' => t('New Expenses'),
        'url' => $this->createURL('expenses/create'),
        'icon' => 'icon-white icon-plus',
    ));
?>

<?php
    $this->widget('bootstrap.widgets.TbGridView', array(
        'type' => 'striped bordered condensed',
        'dataProvider' => $dataProvider,
        'template' => '{summary}{items}{pager}',
        'enablePagination' => true,
        'columns' => array(
            array('name' => 'id', 'header' => '#'),
            array('name' => 'user.user_code', 'header' => t('User Code')),
            array('name' => 'user.profile.firstname', 'header' => t('First Name')),
            array('name' => 'user.profile.lastname', 'header' => t('Last Name')),
            array('name' => 'item', 'header' => t('Item')),
            array('name' => 'amount', 'header' => t('Amount')),
            array('name' => 'on_date', 'header' => t('Date')),
            array('name' => 'updateby_user_id', 'header' => t('Updated by')),
            array('name' => 'createtime', 'header' => t('Create Date')),
            array('name' => 'modifytime', 'header' => t('Modify Date')),
            array('name' => 'remark', 'header' => t('Remark')),
            array(
                'class' => 'bootstrap.widgets.TbButtonColumn',
                'htmlOptions' => array('style' => 'width: 50px'),
                'template' => '{view}{update}{delete}',
            ),
        ),
    ));
?>